/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.app.model.bo;

/**
 *
 * @author KM
 */
public class NamedEntity extends Entity implements INamedEntity {

    private static final long serialVersionUID = 1L;
    private String name;
    private String description;

    public NamedEntity(String name) {
        setName(name);
    }

    public NamedEntity() {
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getDescription() {
        return this.description;
    }

    @Override
    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public StringBuffer fillProperties(StringBuffer sb) {
        return super.fillProperties(sb).append(" (name=").append(getName()).append(')');
    }

    @Override
    public String toString() {
        return super.toString() + " [name=" + getName() + ']';
    }
}
